<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-6-12
 * Time: 下午7:44
 */

namespace Macaca\Model\Admin;

use Macaca\Model\Base;
use Monkey;

class User extends Base {

    public $table = 'admin_user'; //$uid,$uname,$password,$email,$last_ip,$last_time
    public $priKey = 'uid';
    public $nameKey = 'uname';

    public function findList($page = 0, $pageLength = 10) {
        //$uid,$uname,$password,$email,$last_ip,$last_time
        return $this->conn->select($this->table)
            ->range($pageLength, $page*$pageLength)
            ->execute()->fetchAll();
    }
} 